package fin_enum

import "gitee.com/lailonghui/vehicle-supervision-framework/pkg/dicts"

// 财务-司机卡缴费-撤销缴费状态
type finDriverCardFeeBillCancelStatus int

var FinDriverCardFeeBillCancelStatus finDriverCardFeeBillCancelStatus

// 未撤销
func (c *finDriverCardFeeBillCancelStatus) NotReturn() int {
	return -1
}

// 待验证
func (c *finDriverCardFeeBillCancelStatus) NotVerify() int {
	return 1
}

// 待审核
func (c *finDriverCardFeeBillCancelStatus) NotAudit() int {
	return 2
}

// 已撤销
func (c *finDriverCardFeeBillCancelStatus) HasReturn() int {
	return 3
}

// 已驳回
func (c *finDriverCardFeeBillCancelStatus) HasReject() int {
	return 4
}

func (c *finDriverCardFeeBillCancelStatus) ToText(value int) string {
	switch value {

	case -1:
		return "未撤销"

	case 1:
		return "待验证"

	case 2:
		return "待审核"

	case 3:
		return "已撤销"

	case 4:
		return "已驳回"

	}
	return ""
}

func (c *finDriverCardFeeBillCancelStatus) ToDict(value int) *dicts.IntDict {
	return &dicts.IntDict{
		Text:  c.ToText(value),
		Value: value,
	}
}

func (c *finDriverCardFeeBillCancelStatus) ToValue(text string) int {
	switch text {

	case "未撤销":
		return -1

	case "待验证":
		return 1

	case "待审核":
		return 2

	case "已撤销":
		return 3

	case "已驳回":
		return 4

	}
	return 0
}
